package com.fbs.wowo.correctRight.service;


import com.fbs.wowo.correctRight.entity.CorrectRight;
import com.fbs.wowo.correctRight.entity.CorrectRightInfo;
import com.fbs.wowo.correctRight.vo.CorrectRightQuery;

import java.util.List;

public interface CorrectRightService {

    int insertSelective(CorrectRight record);

    CorrectRight selectByPrimaryKey(String id);

    CorrectRightInfo findCorrectRightInfoByEssayId(String essayId);

    int updateByPrimaryKeySelective(CorrectRight record);

    int deleteByEssayId(String essayId);

    List<CorrectRightInfo> findCorrectRightList(CorrectRightQuery crq);

    int reviewTheSuccess(String articleId, int type);

    int reviewTheFailure(String articleId,int type);
}
